package com.google.code.netbuilder.dal.providers;

import java.io.Serializable;
import java.util.List;
/**
 * 
 * @author Sergey Kozlov
 *
 * @param <T>
 * @param <ID>
 */
public interface IGenericProvider <T, ID extends Serializable> {

    public void save(T entity) throws RuntimeException;
    
    public void update(T entity) throws RuntimeException;
 
    public void delete(T entity) throws RuntimeException;
 
    public List<T> findAll() throws RuntimeException;
 
    public T findByID(Integer id) throws RuntimeException;
	
}
